package cn.watson.basic.constant;

/**
* @Description: 公共常量类
* @Author: ZhangRui
* @Version: 1.0
* @Date:  2022/7/6 11:55
*/
public class BaseConstants {

    /**
    * @Description: 短信常用类
    * @Author: ZhangRui
    * @Version: 1.0
    * @Date:  2022/7/6 12:33
    */
    public class SmsConstant{
        // 注册的用户名
        public static  final String SMS_UID = "Zhang_rui";
        // 短信密钥
        public static  final String SMS_KEY = "5074A11E5F01AE9ACCE180BACBD9F498";
    }

    /**
    * @Title:
    * @Description: 验证Code常量类
    * @Author: ZhangRui
    * @Version: 1.0
    * @Date:  2022/7/6 15:44  
    * @Parameters: 
    * @Return 
    */
    public class VerifyCodeConstant{
        // 用于拼接手机号也物键 拼接手机号后获取Redis中的手机验证码值，
        public static  final String BUSINESS_REGISTER_KEY = "register:";
        public static final String BUSINESS_BINDER_KEY = "binder:";

        // 登录时的手机验证码常量
        public static final String BUSINESS_LOGIN_KEY = "login:";
    }


    /**
    * @Title:
    * @Description: 注册相关常量类
    * @Author: ZhangRui
    * @Version: 1.0
    * @Date:  2022/7/10 17:33
    * @Parameters:
    * @Return
    */
    public class WxConstant{
        // 获取access_token的URL地址，官网复制
        public static final String TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        public static final String WXUSER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";

        // 微信的appId 企业注册后才有【加上下面的密钥，还有一个回调域】
        public static final String APPID = "wxd853562a0548a7d0";

        // 微信的密钥 企业注册后才有
        public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";
    }

}
